<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$config['max_size']			= 500;
$config['max_width']		= 800;
$config['max_height']		= 800;
$config['max_filename']		= 0;
$config['allowed_types']	= 'gif|jpg|png|txt';
$config['file_name']		= "";
$config['upload_path']		= "uploadfiles/";
$config['overwrite']		= FALSE;
$config['encrypt_name']		= TRUE;
$config['remove_spaces']	= TRUE;

// 上传文件按日期分类存储的日期格式，
$config['storage_mode'] 	= 'Ym';

// 自定义的允许上传的文件类型和大小
$config['upload_allowed']['image'] = 'gif|jpg|png|bmp';
$config['upload_allowed']['file'] = 'txt|zip|rar';
$config['upload_allowed']['image_size'] = 500;
$config['upload_allowed']['file_size'] = 10240;

/* End of file upload.php */
/* Location: ./application/controllers/upload.php */
